#ifndef GUI_REMOVE_H
#define GUI_REMOVE_H
//
#include "ui_gui_remove.h"
#include "main.h"
#include "base_modul.h"
#include "../qxml.h"
#include "basedav.h"
#include "networkdav.h"
#include "davpropfind.h"


//
/*  Save file as gui_remove.h  */
/*  incomming class name Gui_Remove */
//
#include <QPointer>
//
class Gui_Remove : public QDialog, public Ui::Gui_Remove, public Base_Modul
{
     Q_OBJECT
//
public:	 
    Gui_Remove( NetworkDav * db , QString path );
//
protected:	 
    NetworkDav *dbdav;
    void closeEvent( QCloseEvent* );
    QStringList Del_File;
    QStringList Del_Dir;
    QStringList Del_Work_Grep;
    QStringList CodaonDelete;
    void WakeUpsFile();
//
private:
    QString path;
    int passaggiwake;
    bool aborter;
    bool havingdir;
    QString redirpath;
    QString onedirup;
    QString remotepath;
    QString startpath;
    QString dummyroot;
    void Load_Connector();
    void InfoPath( QString dir , int level );
    QString RealRemotePath( QString dirorfile );
    void GrabNextlevel( int level );
    void NextInfoDir( int now , int level  );
    
    void LastRemove();


signals:
   void CloseDeleteAction( QString path );
   void StayonLevel( QString path );
public slots:
 void StopandCloseAll();
 void ShowMessageWarning( QString msg );
 void StopCicles();
 void ContinueCicles();
 void  RegisterRecursive(QStringList xdir ,QStringList xfile , int level );
 void ChoiserAction();
 void CodaRemove( int now   );




};
//
#endif // GUI_REMOVE_H

